package com.demo.mcp.server.service;

import org.springframework.ai.tool.annotation.Tool;
import org.springframework.ai.tool.annotation.ToolParam;
import org.springframework.stereotype.Service;

@Service
public class NumService {

    @Tool(description = "Add two numbers")
    public String addNumbers(@ToolParam(description = "first number") int a,
                             @ToolParam(description = "second number") int b) {
        return "Add two numbers result " + a + " + " + b + " = " + (a + b);
    }

}
